package com.wnxy.pms.order.core.service;

import com.wnxy.pms.order.core.dto.OrderDto;
import com.wnxy.pms.order.core.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wnxy.pms.order.core.vo.OrderVo;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author Jet
 * @since 2022-06-09
 */
public interface IOrderService extends IService<Order> {

    String createOrder(OrderDto orderDto);

    /**
     * 根据订单编号查询订单接口
     * @param orderSn
     * @return
     */
    OrderVo findByOrderSn(String orderSn);

    /**
     * 更新订单状态
     * @param orderSn
     * @return
     */
    Integer updateByOrderSn(String orderSn);
}
